<div style="text-align:right;">
    <a href="{url link='public.rss' act=threads id=$iThreadId rss=10}">
    <img src="design/pic/rss10.gif" class="sqr" style="vertical-align:middle;" alt="{language text="rss_1_0"}" title="{language text="link_to_rss_1_0"}"/>
    </a>

    &nbsp;&nbsp;&nbsp;
    <a href="{url link='public.rss' act=threads id=$iThreadId rss=20}">
    <img src="design/pic/rss20.gif" class="sqr" style="vertical-align:middle;" alt="{language text="rss_2_0"}" title="{language text="link_to_rss_2_0"}"/>
    </a>
</div>
{if $aTopics}
<table style="width:100%;" cellpadding="5" cellspacing="1">
    <tr>
        <td style="font-size:8pt;width:40%;font-size:8pt;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor_589`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`" }</td>
        <td style="font-size:8pt;width:60%;">
        {include file="`$sRootPath`/_blocks/pager.html"}
        </td>
    </tr>
</table>

<div class="border2">
    <table style="width:100%;" class="forum-2" cellpadding="5" cellspacing="1">
        <tr class="forum-1">
            <td style="width:10%;text-align:center;"><img src="design/pic/spacer.gif" alt="" width="40" height="2" /></td>
            <td style="width:50%;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="forum_topics_286"}</b></span></td>
            <td style="width:10%;text-align:center;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="replies"}</b></span></td>
            <td style="width:10%;text-align:center;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="views_543"}</b></span></td>
            <td style="width:30%;text-align:center;font-size:8pt;"><span style="vertical-align:middle;"><b>{language text="last_reply"}</b></span></td>
        </tr>
    {foreach from=$aTopics item=aTopic}
        <tr>
            <td style="width:10%;text-align:center;" class="forum-3"><a href="{url link='public.user' name=$aTopic.user}">
                  {Account::Avatar sUser=$aTopic.user iSize=50 class="pic1" onmouseover="showInfo5('`$aTopic.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
                  </td>
            <td style="width:50%;font-size:8pt;" class="forum-3">

            <div style="font-size:10pt;">
            {if $iAnnounce == $aTopic.forum_type}<span style="font-size:8pt;font-weight:bold;">{language text="announcement"}:</span> {/if}
            {if $iSticky == $aTopic.forum_type}<span style="font-size:8pt;font-weight:bold;">{language text="sticky"}:</span> {/if}
            <a href="{url link='public.forum.posts' id=$aTopic.id foxseotitle=$aTopic.title}">{if !$bIsGuest && !$aTopic.is_viewed}<b>{/if}{$aTopic.title}{if !$bIsGuest && !$aTopic.is_viewed}</b>{/if}</a> {if !$bIsGuest && !$aTopic.is_viewed}<b>({language text="new"})</b>{/if}</div>
            <div style="padding:5px;">{language text="posted_by_604"}: {$aTopic.user} {language text="on"} {$aTopic.time|date_format:$sDateTimeFormat}</div>

            </td>
            <td style="width:10%;text-align:center;font-size:8pt;" class="forum-3">{$aTopic.total_replies}</td>
            <td style="width:10%;text-align:center;font-size:8pt;" class="forum-3">{$aTopic.view}</td>
            <td style="width:30%;text-align:center;font-size:8pt;" class="forum-3">
            {if $aTopic.last_time}
                {language text="by"}: <a href="{url link='public.user' name=$aTopic.last_user}">{$aTopic.last_user}</a>
                <a href="{url link='public.forum.posts' id=$aTopic.id page='last'}#r{$aTopic.last_id}"> &#187;&#187; </a>
                <br />
                {$aTopic.last_time|date_format:$sDateTimeFormat}
            {else}
                {language text="no_replies_925"}
            {/if}
            </td>
        </tr>
    {/foreach}
    </table>

    <table style="width:100%;" class="forum-1" cellpadding="5" cellspacing="1">
        <tr>
            <td style="font-size:8pt;">{$dtToday|date_format:$sDateFormat}</td>
        </tr>
    </table>
</div>


<table style="width:100%;" cellpadding="5" cellspacing="1">
    <tr>
        <td style="font-size:8pt;width:40%;font-size:8pt;" class="color">{str_replace text="`viewing_apaging_fromrow_apaging_tor_589`" aPaging_fromRow="`$aPaging.fromRow`" aPaging_toRow="`$aPaging.toRow`" aPaging_totalRows="`$aPaging.totalRows`"}</td>
        <td style="font-size:8pt;width:60%;">
        {include file="`$sRootPath`/_blocks/pager.html"}
        </td>
    </tr>
</table>
{else}
<br />
<div class="message_info">
  {language text="there_are_no_topics_yet"}
</div>
<br />
{/if}